package com.ruoyi.product.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品评论对象 product_comment
 * 
 * @author ruoyi
 * @date 2025-01-07
 */
public class ProductComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentContent;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productTime;

    /** 评论评分 */
    @Excel(name = "评论评分")
    private Integer productScore;

    /** 评论图片 */
    @Excel(name = "评论图片")
    private String commentImg;

    /** 评论视频 */
    @Excel(name = "评论视频")
    private String commentVideo;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Integer userId;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private Integer productId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long orderId;

    /** 状态 */
    @Excel(name = "状态")
    private Integer del;

    /** 用户 */
    @Excel(name = "用户")
    private SysUser sysUser;

    /** 商品订单 */
    @Excel(name = "商品订单")
    private ProductOrder productOrder;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private ProductDetail productDetail;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCommentContent(String commentContent) 
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent() 
    {
        return commentContent;
    }
    public void setProductTime(Date productTime) 
    {
        this.productTime = productTime;
    }

    public Date getProductTime() 
    {
        return productTime;
    }
    public void setProductScore(Integer productScore) 
    {
        this.productScore = productScore;
    }

    public Integer getProductScore() 
    {
        return productScore;
    }
    public void setCommentImg(String commentImg) 
    {
        this.commentImg = commentImg;
    }

    public String getCommentImg() 
    {
        return commentImg;
    }
    public void setCommentVideo(String commentVideo) 
    {
        this.commentVideo = commentVideo;
    }

    public String getCommentVideo() 
    {
        return commentVideo;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public void setDel(Integer del)
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public ProductOrder getProductOrder() {
        return productOrder;
    }

    public void setProductOrder(ProductOrder productOrder) {
        this.productOrder = productOrder;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public ProductDetail getProductDetail() {
        return productDetail;
    }

    public void setProductDetail(ProductDetail productDetail) {
        this.productDetail = productDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commentContent", getCommentContent())
            .append("productTime", getProductTime())
            .append("productScore", getProductScore())
            .append("commentImg", getCommentImg())
            .append("commentVideo", getCommentVideo())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("orderId", getOrderId())
            .append("del", getDel())
            .append("sysUser", getSysUser())
            .append("productOrder", getProductOrder())
            .append("productDetail", getProductDetail())
            .toString();
    }
}
